package com.lp.biz.content.model.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

import static com.lp.common.constant.CommonConstant.*;

/**
 * @program: backend
 * @description:
 * @author: Ke.Song
 * @since: 2024-08-11 1:33:40
 */
@Data
public class Course {

    private Integer id;

    @NotBlank(message = "标题不能为空")
    private String title;

    private String description;

    private Integer labelId;

    private String label;

    private Integer num;

    @NotBlank(message = "横图不能为空")
    private String imageT;

    @NotBlank(message = "竖图不能为空")
    private String imageV;

    private Integer isCharge = NEGATE;

    @NotNull(message = "上架状态不能为空")
    private Integer isDisplay;

    @NotBlank(message = "图文详情不能为空")
    private String profile;

    private BigDecimal originalPrice;

    private BigDecimal actualPrice;

    private Integer sort;
}
